import AutoImport from 'unplugin-auto-import/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { iconsResolver } from './icons.ts'

// https://github.com/unplugin/unplugin-auto-import
export default function autoImportPlugin() {
  return AutoImport({
    imports: ['vue'],
    resolvers: [ElementPlusResolver(), iconsResolver()],
    dts: false,
  })
}
